<style>
    .xh-form .btn{
        margin-right: 0px;
    }
    .xh-form tr td:nth-child(2n){
        padding: 5px 20px 5px 0;
    }
    td >label{
        float: right;
        margin-right: 10px;
    }
    body{
        background-color: #f9f9f9;
    }
</style>
<script>
    var goodsInfo = {{ goodsInfo }};
</script>
<form id="xh_form" class="xh-form" method="post" style="margin-left: 20px;">
    <div class="xh-area-form">
        <table>
            <tr>
                <td style="width: 75px"><label>商品名称</label></td>
                <td style="width: 200px">
                    <input id="goodsName" name="goodsName" must="true" type="text">
                </td>
                <td style="width: 75px"><label>商品类型</label></td>
                <td style="width: 200px">
                    {% if typeId != 'null' and typeId != null %}
                        <select name="goodsTypeId" id="goodsTypeId" disabled="disabled" must="true">
                    {% else %}
                        <select name="goodsTypeId" id="goodsTypeId" must="true">
                    {% endif %}
                            <option value="" selected="selected">请选择</option>
                            {% if typeId != 'null' %}
                                {% for id,text in  types %}
                                    {% if typeId == id %}
                                        <option value="{{ id }}" selected="selected">{{ text }}</option>
                                    {% else %}
                                        <option value="{{ id }}">{{ text }}</option>
                                    {% endif %}
                                {% endfor %}
                            {% else %}
                                {% for id,text in  types %}
                                    <option value="{{ id }}">{{ text }}</option>
                                {% endfor %}
                            {% endif %}
                        </select>
                </td>
            </tr>
            <tr>
                <td style="width: 75px"><label>单位</label></td>
                <td style="width: 200px"><input name="unit" id="unit" must="true" type="text" placeholder="物品单位，箱、只等"></td>
                <td style="width: 75px"><label>消耗品</label></td>
                <td style="width: 200px">
                    <select name="type" id="type" must="true">
                        <option value="0">否</option>
                        <option value="1">是</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td style="width: 75px"><label>物品描述</label></td>
                <td colspan="3"><textarea style="height: 80px" id="remark" name="remark"></textarea></td>
            </tr>
        </table>
    </div>
</form>